// console.log(document);

// const num1 = document.querySelector('#num1');

// console.log(num1);

import PromiseAll from './all';

const promise1 = Promise.resolve(3);
const promise2 = 42;
const promise3 = new Promise((resolve, reject) => {
  setTimeout(resolve, 100, 'foo');
});

PromiseAll([promise1, promise2, promise3]).then(res => {
  console.log(res);
});

// Promise.all([promise1, promise2, promise3]).then(res => {
//   console.log(res);
// });

var p = Promise.all([1,2,3]).then(res => {
  console.log(res);
});





export {}

